Optimal. Leaf size=53 \[ \frac{1}{a f \sqrt{a \cos ^2(e+f x)}}-\frac{\tanh ^{-1}\left (\frac{\sqrt{a \cos ^2(e+f x)}}{\sqrt{a}}\right )}{a^{3/2} f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0922653, antiderivative size = 53, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.208, Rules used = {3176, 3205, 51, 63, 206} \[ \frac{1}{a f \sqrt{a \cos ^2(e+f x)}}-\frac{\tanh ^{-1}\left (\frac{\sqrt{a \cos ^2(e+f x)}}{\sqrt{a}}\right )}{a^{3/2} f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3176
Rule 3205
Rule 51
Rule 63
Rule 206
Rubi steps
\begin{align*} \int \frac{\cot (e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx &=\int \frac{\cot (e+f x)}{\left (a \cos ^2(e+f x)\right )^{3/2}} \, dx\\ &=-\frac{\operatorname{Subst}\left (\int \frac{1}{(1-x) (a x)^{3/2}} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=\frac{1}{a f \sqrt{a \cos ^2(e+f x)}}-\frac{\operatorname{Subst}\left (\int \frac{1}{(1-x) \sqrt{a x}} \, dx,x,\cos ^2(e+f x)\right )}{2 a f}\\ &=\frac{1}{a f \sqrt{a \cos ^2(e+f x)}}-\frac{\operatorname{Subst}\left (\int \frac{1}{1-\frac{x^2}{a}} \, dx,x,\sqrt{a \cos ^2(e+f x)}\right )}{a^2 f}\\ &=-\frac{\tanh ^{-1}\left (\frac{\sqrt{a \cos ^2(e+f x)}}{\sqrt{a}}\right )}{a^{3/2} f}+\frac{1}{a f \sqrt{a \cos ^2(e+f x)}}\\ \end{align*}
Mathematica [A] time = 0.0672689, size = 55, normalized size = 1.04 \[ \frac{\cos (e+f x) \left (\log \left (\sin \left (\frac{1}{2} (e+f x)\right )\right )-\log \left (\cos \left (\frac{1}{2} (e+f x)\right )\right )\right )+1}{a f \sqrt{a \cos ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 2.359, size = 75, normalized size = 1.4 \begin{align*}{\frac{1}{ \left ( \cos \left ( fx+e \right ) \right ) ^{2}f} \left ( -\ln \left ( 2\,{\frac{\sqrt{a}\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}+a}{\sin \left ( fx+e \right ) }} \right ){a}^{2} \left ( \cos \left ( fx+e \right ) \right ) ^{2}+\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{a}^{{\frac{3}{2}}} \right ){a}^{-{\frac{7}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.68648, size = 155, normalized size = 2.92 \begin{align*} -\frac{\sqrt{a \cos \left (f x + e\right )^{2}}{\left (\cos \left (f x + e\right ) \log \left (-\frac{\cos \left (f x + e\right ) + 1}{\cos \left (f x + e\right ) - 1}\right ) - 2\right )}}{2 \, a^{2} f \cos \left (f x + e\right )^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot{\left (e + f x \right )}}{\left (- a \left (\sin{\left (e + f x \right )} - 1\right ) \left (\sin{\left (e + f x \right )} + 1\right )\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12655, size = 80, normalized size = 1.51 \begin{align*} \frac{\arctan \left (\frac{\sqrt{-a \sin \left (f x + e\right )^{2} + a}}{\sqrt{-a}}\right )}{\sqrt{-a} a f} + \frac{1}{\sqrt{-a \sin \left (f x + e\right )^{2} + a} a f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]